package com.traveldream.entity_managers;

import java.util.List;

import javax.ejb.Local;

import com.traveldream.entities.Invite;
import com.traveldream.entities.Packet;
import com.traveldream.entities.User;

@Local
public interface InviteManager {

	public Invite create( Invite i );
	public List<Invite> findAll(); 
	public List<Invite> findBySender(User c);
	public List<Invite> findByReceiver(User c);
	// Customer b=who booked the packet p
	// Customer receiver=who accepts the invite
	public boolean acceptInvite(Invite i,User receiver);
}
